package com.example.apiservice.client;


import com.example.apiservice.client.fallback.StudentClientFallbackFactory;
import com.example.common.domain.Result;
import com.example.common.domain.dto.HomeworkDto;
import com.example.common.domain.vo.PageWithAnswer;
import com.example.common.domain.vo.QuestionWithAnswerVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;


@FeignClient(value = "student-service", fallbackFactory = StudentClientFallbackFactory.class,
        url = "http://127.0.0.1:8183")
public interface StudentClient {


    /**
     * .查看题目接口,包含学生答案
     */
    @GetMapping("/students/getHomework/{homeworkId}")
     Result<PageWithAnswer<QuestionWithAnswerVO>> getHomework(@RequestBody HomeworkDto h);


}
